/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.bean.model.SkuRetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 *
 *
 * @author LGH
 * @date 2020-08-27 18:02:40
 */
public interface SkuRetailMapper extends BaseMapper<SkuRetail> {

    void updateBatchBySkuId(@Param("skuRetails") List<SkuRetail> skuRetails);

    void deleteByProdId(Long prodId);

    void removeBatchByIds(@Param("ids") List<Long> ids);

    List<SkuRetail> getByRetailProdId(@Param("ids") List<Long> ids);

    int countRelationProd(@Param("retailProdId") Long retailProdId, @Param("shopId") Long shopId);

    List<SkuRetail> getAllByRetailProdId(@Param("ids") List<Long> ids);
}
